/**
* 上海中赢金融信息服务有限公司
* Copyright (c) 2017-2027 Chinazyjr,Inc.All Rights Reserved.
*/

package com.sys.midware.redis.config;

import java.util.List;

/**
 * 
 * <b>Description：</b> redis配置 <br/>
 * <b>ClassName：</b> RedisConfig <br/>
 * <b>@author：</b> jackyshang <br/>
 * <b>@date：</b> 2016年7月15日 上午11:48:38 <br/>
 * <b>@version: </b> <br/>
 */
public class RedisConfig {
    /**
     * 运行模式
     */
    private String runMode;

    /**
     * redis集群节点
     */
    private List<RedisNode> nodeList;

    /**
     * redis连接池
     */
    private RedisPoolConfig redisPoolConfig;
    /**
     * runMode
     *
     * @return the runMode
     */

    public String getRunMode() {
        return runMode;
    }

    /**
     * @param runMode
     *            the runMode to set
     */
    public void setRunMode(String runMode) {
        this.runMode = runMode;
    }

    /**
     * redisPoolConfig
     *
     * @return the redisPoolConfig
     */

    public RedisPoolConfig getRedisPoolConfig() {
        return redisPoolConfig;
    }

    /**
     * @param redisPoolConfig
     *            the redisPoolConfig to set
     */
    public void setRedisPoolConfig(RedisPoolConfig redisPoolConfig) {
        this.redisPoolConfig = redisPoolConfig;
    }

    /**
     * nodeList
     *
     * @return the nodeList
     */

    public List<RedisNode> getNodeList() {
        return nodeList;
    }

    /**
     * @param nodeList
     *            the nodeList to set
     */
    public void setNodeList(List<RedisNode> nodeList) {
        this.nodeList = nodeList;
    }

    

    @Override
    public String toString() {
        StringBuffer sb = new StringBuffer();
        sb.append("RedisConfig [");
        sb.append("runMode=" + runMode);
        sb.append(",nodeList=" + nodeList);
        sb.append(",redisPoolConfig=" + redisPoolConfig);
        sb.append("]");
        
        return sb.toString();
    }

}
